package com.gc.business.mapper;

import com.gc.business.domain.UpkeepInfo;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gc.business.domain.UpkeepRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 电梯保养 数据层
 * 
 * @author hruiyan
 * @date 2020-11-18
 */
public interface UpkeepInfoMapper extends BaseMapper<UpkeepInfo> {

    /**
     * 通过审核状态查询记录列表
     * @param reviewType
     * @return
     */
    public List<UpkeepInfo> selectListByReviewType(@Param("upkeepInfo")UpkeepInfo upkeepInfo,@Param("reviewType")Integer reviewType,@Param("companyId")Long companyId);

    /**
     * 通过提交人/审核人查询自己相关的记录列表
     * @param referUserId
     * @param auditUserId
     * @return
     */
    public List<UpkeepInfo> selectListByReviewUserId(@Param("referUserId")Long referUserId,@Param("auditUserId")Long auditUserId);

    /**
     * 联查根据ID详情需要的信息
     * @param upkeepId
     * @return
     */
    public UpkeepInfo selectAllInfoById(Long upkeepId);

}